package com.z.audio;

import android.app.Application;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.media.AudioManager;
import android.os.Handler;
import android.os.Looper;

public class App extends Application {
    public static Context Ctx;
    public static AudioManager Audio;
    public static AppWidgetManager Widget;

    public static Handler Loople;

    @Override
    public void onCreate() {
        super.onCreate();

        Ctx = getApplicationContext();
        Audio = (AudioManager) getSystemService(AUDIO_SERVICE);
        Widget = AppWidgetManager.getInstance(App.Ctx);

        Loople = new Handler(Looper.getMainLooper());
    }

    @Override
    public void onTerminate() {
        super.onTerminate();

        Audio = null;
    }
}
